<div class="layui-side layui-bg-black">
	<div class="layui-side-scroll">
		<input id="currentMenu" type="hidden" value="${currentMenu!}">
		<ul class="layui-nav layui-nav-tree" lay-shrink="all" lay-filter="test">
			<%
			for (userMenuEntry in userMenus) {
				var userMenu = userMenuEntry.key;
				if (userMenu.type == @MenuType.DROPDOWN) {
			%>
			<li class="layui-nav-item">
				<a href="javascript:void(0)">${userMenu.name}</a>
				<dl class="layui-nav-child">
				<%
				for (userMenuChild in userMenuEntry.value!) {
					if (userMenuChild.type == @MenuType.INTERNAL_LINK) {
				%>
				<dd class="user-menu-${userMenuChild.eName}"><a href="${ctxPath}${userMenuChild.url}">${userMenuChild.name}</a></dd>
				<%	} else if (userMenuChild.type == @MenuType.EXTERNAL_LINKS) { %>
				<dd class="user-menu-${userMenuChild.eName}"><a href="${userMenuChild.url}" target="_blank">${userMenuChild.name}</a></dd>
				<%
					}
				}
				%>
				</dl>
			</li>
			<%	} else if (userMenu.type == @MenuType.INTERNAL_LINK) { %>
			<li class="layui-nav-item user-menu-${userMenu.eName}"><a href="${ctxPath}${userMenu.url}">${userMenu.name}</a></li>
			<%	} else if (userMenu.type == @MenuType.EXTERNAL_LINKS) { %>
			<li class="layui-nav-item user-menu-${userMenu.eName}"><a href="${userMenu.url}" target="_blank">${userMenu.name}</a></li>
			<%
				}
			}
			%>
		</ul>
	</div>
</div>
